package business.report.impl;

import business.report.ForestrySeedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.ForestrySeed;
import report.domain.ForestrySeedCriteria;
import report.mapper.ForestrySeedMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "forestrySeedService")
public class ForestrySeedServiceImpl implements ForestrySeedService {
    @Autowired
    ForestrySeedMapper forestrySeedMapper;

    @Override
    public List<ForestrySeed> getForestrySeed() {
        ForestrySeedCriteria criteria = new ForestrySeedCriteria();
        criteria.createCriteria().getAllCriteria();

        return forestrySeedMapper.selectByExample(criteria);
    }
}
